package com.work.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 购物车
 * @Date 2024-05-15 21:09:05
 * @author hjj
 */
@Data
@TableName("shopping_cart")
@ApiModel(value="ShoppingCart对象", description="购物车")
public class ShoppingCart implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotNull(message="[藏品id]不能为空")
    @ApiModelProperty("藏品id")
    private Integer collectionId;

    @ApiModelProperty("状态(0未购买，1已购买，2已下架)")
    private Integer state;

    @NotNull(message="[创作者id]不能为空")
    @ApiModelProperty("创作者id")
    private Integer creatorId;

}
